package com.teacher.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.teacher.common.CommonResult;
import com.teacher.pojo.dto.volunteerstar.VolunteerStartGetDto;
import com.teacher.pojo.entity.VolunteerStar;
import com.baomidou.mybatisplus.extension.service.IService;
import com.teacher.pojo.vo.volunteerstar.VolunteerStartGetVo;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 星级志愿者 服务类
 * </p>
 *
 * @author zfm
 * @since 2021-08-01
 */
public interface IVolunteerStarService extends IService<VolunteerStar> {

    /**
     * 查询星级志愿者
     *
     * @param dto
     * @return
     */
    CommonResult<IPage<VolunteerStartGetVo>> getPage(VolunteerStartGetDto dto);

    /**
     * 导入星级志愿者
     *
     * @param file
     * @return
     */
    CommonResult<String> upload(MultipartFile file);
}
